@media screen and (max-width:500px) {

  #comment-form {
    .comment-header {

      .user-avatar {
        max-height: 50px;
      }

      .form-item-group {
        flex-direction: column;
      }
    }

    .form-footer {
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;

      .comment-button-groups {
        margin: 15px 0;
      }
    }
  }
}

#comment-form {
  background-color: #FFF;
  padding: 15px;
  max-width: 800px;
  border-radius: 5px;
  width: 100%;
  position: relative;
  border: solid 1px #EBEBEB50;
  border: 0;
  transition: box-shadow .15s ease;
  box-shadow: 0 1px 3px rgb(50 50 93 / 15%), 0 1px 0 rgb(0 0 0 / 2%);
  // .close-btn {
  //   position: absolute;
  //   right: 0;
  //   top: 0;
  //   display: block;
  //   transform: translate(50%, -50%);
  //   overflow: hidden;
  //   outline: none;
  //   border: none;
  //   height: 24px;
  //   width: 24px;
  //   border-radius: 5px;
  //   overflow: hidden;
  //   background-color: #51c2a4;
  //   @include flex-center;
  // }

  .comment-wellcome {
    display: flex;
    align-items: center;
    margin-bottom: 15px;



    .wellcome-inner {
      display: flex;
      align-items: center;
      flex-grow: 1;

      h2 {
        font-weight: bold;
        margin: 0;
      }

      .ant-btn {
        margin-left: auto;
      }
    }
  }

  .comment-header {
    display: flex;
    margin-bottom: 15px;

    .user-avatar {
      img {
        width: 40px;
        height: 40px;
        max-width: 40px;
        max-height: 40px;
        overflow: hidden;
        border-radius: 5px;
        object-fit: cover;
        margin-right: 25px;
        cursor: pointer;
      }
    }

    .form-item-group {
      display: flex;
      flex: 1 1 auto;
      flex-wrap: wrap;
      gap: 15px;

      .form-item {
        flex: 1 0 auto;
        display: flex;
        flex-wrap: wrap;
        position: relative;

        .form-item-inner {
          width: 100%;
          @include flex-center;

          input {
            display: block;
            width: 100%;
            padding: 5px 15px;
            background-image: none;
            background-color: transparent;
            outline: none;
            border: 1px solid #EBEBEB;
            border-radius: 5px;
            overflow: hidden;
            box-shadow: none;
            font-size: 13px;
            color: #bebebe;
            transition: .35s;
            border: 0;
            transition: box-shadow .15s ease;
            box-shadow: 0 1px 3px rgb(50 50 93 / 15%), 0 1px 0 rgb(0 0 0 / 2%);

            // @media (any-hover:hover) {
            //   &:hover {
            //     border-color: #51c2a4;
            //     outline: 0;
            //     color: #333;
            //     -webkit-box-shadow: none;
            //     box-shadow: none;
            //     transition: .35s;
            //   }
            // }

            &:focus {
              color: #333;
              transition: box-shadow .15s ease;
              box-shadow: 0 2px 3px rgb(50 50 93 / 25%), 0 1px 0 rgb(0 0 0 / 5%);
              transition: .35s;
            }

            &::placeholder {
              color: #bebebe;
              transition: .35s;
            }

          }
        }

        .form-item-tips {
          display: none;
          margin: 10px 0;
          padding-left: 15px;
          color: #969696;
          font-size: 13px;
          text-align: left;
          width: 100%;
          white-space: nowrap;
        }
      }
    }
  }



  .comment-editor.secret {
    background: repeating-linear-gradient(145deg, #f2f2f2, #f2f2f2 15px, #fff 0, #fff 30px);
  }

  .comment-editor {
    @include flex-center;

    textarea {
      width: 100%;
      background-color: #FFF;
      background-image: none;
      border-radius: 5px;
      overflow: hidden;
      padding: 15px;
      max-height: 250px;
      min-height: 150px;
      width: 100%;
      font-size: 13px;
      color: #666;
      border: none;
      background-color: transparent;
      outline: none;
      box-shadow: none;
      border: 0;
      border: 1.25px solid rgb(0 0 0 / 2%);
      transition: box-shadow .15s ease;
      box-shadow: 0 1px 3px rgb(50 50 93 / 15%), 0 1px 0 rgb(0 0 0 / 2%);


      &:focus {
        color: #333;
        transition: box-shadow .15s ease;
        box-shadow: 0 2px 3px rgb(50 50 93 / 25%), 0 1px 0 rgb(0 0 0 / 5%);
        transition: .35s;
      }


      &::placeholder {
        color: #bebebe;
      }

    }
  }

  .form-footer {
    display: flex;
    align-items: center;
    padding: 15px 0;

    .comment-emoji {
      text-align: center;

      .emojis {
        width: 25px;
        height: 25px;
        border: none;
        margin: 2px;
        padding: 0;
        background: transparent;
        font-size: 16px;
        cursor: pointer;
        color: #333;
        display: inline-flex;
        justify-content: center;
        align-items: center;

        &:hover {
          color: #51c2a4;
          transition: .5s;
        }
      }
    }

    .comment-secret {
      margin-left: auto;
      @include flex-center;
      font-size: 14px;

      .ant-switch {
        margin-left: 5px;
      }
    }

    .comment-words {
      width: 80px;
      text-align: center;

      span {
        color: #999;
        font-size: 14px;
        white-space: nowrap;
      }
    }

    .comment-button-groups {
      margin-left: 15px;
      display: flex;
      align-items: center;

      .ant-btn {
        height: auto;
        font-size: 12px;
      }

      .ant-btn-primary {
        text-align: center;
        // margin-left: 15px;
      }
    }

  }
}